namespace CIS.Customer
{
    using CISLib;
    using System;
    using System.Web.UI;

    public class OtherCustomerPicDisplay : Page
    {
        private void InitializeComponent()
        {
            base.Load += new EventHandler(this.Page_Load);
        }

        protected override void OnInit(EventArgs e)
        {
            this.InitializeComponent();
            base.OnInit(e);
        }

        private void Page_Load(object sender, EventArgs e)
        {
            CustomerImage customerImage = new CustomerImage();
            customerImage = ManageCustomer.GetCustomerImageObjectInfoViaId(new Guid(base.Request.QueryString["ImageId"]));
            base.Response.ContentType = customerImage.ImageType;
            base.Response.BinaryWrite(customerImage.ImageObject);
        }
    }
}

